<template>
  <view class="container">
  
    
    <view class="confirmation-container">
      <view class="info-box">
        <text class="info-text">温馨提示：</text>
        <text class="info-detail">Please Note:</text>
        <text class="info-detail">选择线下扫码领取，则不能缺货登记。选择线上缺货登记，则不能线下扫码领取。</text>
        <text class="info-detail">On-site pickup and backorder registration are mutually exclusive options.</text>
      </view>
      
      <button class="confirm-btn" @click="confirm">确认Confirm</button>
      <button class="cancel-btn" @click="cancel">取消Cancel</button>
    </view>
    
    <view class="footer">
      <text>成芯软件提供技术支持</text>
    </view>
  </view>
</template>

<script>
export default {
  methods: {
    confirm() {
      // 使用redirectTo代替navigateTo，避免页面栈增长
      uni.redirectTo({
        url: '/pages/qrcode/qrcode'
      })
    },
    
    cancel() {
      // 点击取消直接跳转到缺货登记页面
      uni.navigateTo({
        url: '/pages/backorder/backorder'
      })
    },
    
    close() {
      // 点击关闭按钮返回上一页
      uni.navigateBack()
    }
  }
}
</script>

<style scoped>
.container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20rpx 30rpx;
  background-color: #fff;
  box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
}

.close-btn,
.more-btn {
  font-size: 40rpx;
  color: #333;
}

.title {
  font-size: 32rpx;
  color: #333;
  font-weight: 500;
}

.confirmation-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60rpx 30rpx;
  background-color: #fff;
}

.info-box {
  width: 100%;
  background-color:#FFE9D4;
  border: 1rpx solidrgb(221, 128, 40);
  border-radius: 50rpx;
  padding: 50rpx;
  margin-bottom: 80rpx;
  height:100px;
}

.info-text {
  color: #fa8c16;
  font-size: 14rpx;
  font-weight: bold;
  display: block;
  margin-bottom: 10rpx;
}

.info-detail {
  display: block;
  color: #fa8c16;
  font-size: 26rpx;
  margin-bottom: 10rpx;
  line-height: 1.5;
}

.confirm-btn {
  width: 100%;
  height: 90rpx;
  background-color: #1890ff;
  color: #fff;
  font-size: 32rpx;
  border-radius: 10rpx;
  margin-bottom: 30rpx;
}

.cancel-btn {
  width: 100%;
  height: 90rpx;
  background-color: #fff;
  color: #333;
  font-size: 32rpx;
  border: 2rpx solid #e0e0e0;
  border-radius: 10rpx;
}

.footer {
  padding: 20rpx 0;
  text-align: center;
  font-size: 24rpx;
  color: #999;
  background-color: #fff;
}
</style>